namespace D5
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();

            var size = new Size(100, 100);
            CreateButton(new Point(0, 0), size);
            CreateButton(new Point(100, 0), size);
        }

        private void CreateButton(Point location, Size size)
        {
            Button button = new Button
            {
                Location = location,
                Size = size
            };
            this.Controls.Add(button);
        }
    }
}